﻿using System.Collections.Generic;

namespace XomSample
{
    public interface ILibrary
    {
        IList<IBook2> Books { get; set; } 
    }

    public interface ICharacter
    {
        string Id { get; set; }
        string Name { get; set; }
        string Born { get; set; }
        string Qualification { get; set; }
    }

    public interface IBook2
    {
        string Id { get; set; }
        bool? IsAvailable { get; set; }
        int Isbn { get; set; }
        ITitle Title { get; set; }
        IList<IAuthor> Authors { get; set; }
        IList<ICharacter> Characters { get; set; } 
    }

    public interface IAuthor
    {
        string Id { get; set; }
        string Name { get; set; }
        string Born { get; set; }
        string Dead { get; set; }
    }

    public interface ITitle
    {
        string Name { get; set; }
        string Language { get; set; }
    }
}
